-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#615: added TYPEFLAGS constants for TYPEATTR in ITypeInfo.GetTypeAttr() #619
Conversation
@@ -101,9 +101,6 @@ public void testMSWord() { | |||
if (msWord != null) { | |||
msWord.Quit(); | |||
} | |||
if (null != factory) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this is correct with regard to fixing the compile error, the example lacks proper COM initialization (the automatic init was removed together with the threading). (a Ole32.INSTANCE.CoInitializeEx/Ole32.INSTANCE.CoUninitialize() pair is missing)
At this point factory.disposeAll should be called to dispose all COM objects (I'm not sure how COM reacts to programm shutdown, but in any case a clean shutdown is preferred).
Thanks for the contribution - in addition to the line comment some more points:
I checked the eclipse changes only superficially (after about an hour fight I finally realized I had to rename my jna checkout ...) - so while eclipse seems happy now, I'll trust you on the eclipse parts. |
Maybe we need to add the “platform” target to “dist” dependencies. There’s a separate “platform-test” target as well.
|
I don't understand:
Do I understand this correct, that you see tests not executed when called this way? If so I have a diagnosis: Ant in this case executes the target "-dynamic-properties" is evaluated twice. On the second call
os.prefix is set and cross-compile will be set to true. This in turn prevents the tests from being run.... A quick fix:
|
@matthiasblaesing yes, you are right. I have mixed up corrections and features... so I have created a new pull request #620. There are the corrections for the compile problems and I have added a CoInitializeEx and CoUninitialize as you mentioned. |
I've merged #620. This whole area could use some more active maintainers :) |
The Makefile expects GNU make. I’ve not tried winbash; I’ve only done builds using cygwin and only occasionally with mingw. I would like to shake out any problems so others can more easily build under windows.
|
Ok, thanks for merging. I close now this request and make a new one for the feature (when I have successfully merged the different branches... :-] ) |
…s#619) Motivation: Integer.valueOf(...) uses a cache internally to reduce object creation. Let's take advantage of that Modifications: Replace new Integer(...) calls with Integer.valueOf(...) Result: Less Object allocations
In addition I have made the contribution projects compileable for eclipse. I hope it is ok that way. May it be that the 'ant dist test' call is compiling the contribution projects not a bit?!